package com.choupin.choupin.entity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Objects;

public class PoolListAndPool {
    private  Integer id;//抽奖池id
    private  String name;// 抽奖池名称
    private String instructions;//抽奖池规则说明
    private BigDecimal price;//抽奖池抽奖券价格
    List<Turntable>  turntables;

    public PoolListAndPool() {
    }

    public PoolListAndPool(Integer id, String name, String instructions, BigDecimal price, List<Turntable> turntables) {
        this.id = id;
        this.name = name;
        this.instructions = instructions;
        this.price = price;
        this.turntables = turntables;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInstructions() {
        return instructions;
    }

    public void setInstructions(String instructions) {
        this.instructions = instructions;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public List<Turntable> getTurntables() {
        return turntables;
    }

    public void setTurntables(List<Turntable> turntables) {
        this.turntables = turntables;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PoolListAndPool that = (PoolListAndPool) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(instructions, that.instructions) &&
                Objects.equals(price, that.price) &&
                Objects.equals(turntables, that.turntables);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, instructions, price, turntables);
    }

    @Override
    public String toString() {
        return "PoolListAndPool{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", instructions='" + instructions + '\'' +
                ", price=" + price +
                ", turntables=" + turntables +
                '}';
    }
}
